<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>教师信息</title>
    <link rel="stylesheet" href="../../static/lib/bootstrap-3.3.5-dist/css/bootstrap.css">
    <link rel="stylesheet" href="../../static/css/teacher.css">
    <link rel="stylesheet" href="../../static/css/lyz.calendar.css">
    <link rel="stylesheet" href="../../static/font/iconfont.css">
</head>
<body>
<div class="teaInfor_content container-fluid">
    <div class="row">
        <h1>教师管理</h1>
        <form action="/select">
            <a href="/toadd" class="btn btn-success">增加</a>
            <div class="teacher_mytable col-lg-12">
                <table id="teacher_mytable" class="table table-hover table-bordered table-striped">
                    <thead id="tInfor_thead">
                    <tr>
                        <th>编号</th>
                        <th>姓名</th>
                        <th>密码</th>
                        <th>电话</th>
                        <th>描述</th>
                        <th>职位</th>
                        <th>邮箱</th>
                        <th>班级</th>
                        <th>操作</th>
                    </tr>
                    <tbody id="myTbody">
                    <c:forEach items="${pageInfo.list}" var="t">
                        <tr>
                            <td>${t.tId}</td>
                            <td>${t.tName}</td>
                            <td>${t.tPassword}</td>
                            <td>${t.tPhone}</td>
                            <td>${t.tDesc}</td>
                            <td>${t.status}</td>
                            <td>${t.tEmail}</td>
                            <td>${t.tPath}</td>
                            <td>
                                <a href="/toupdate" class="btn btn-success">修改</a>
                            </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </form>
    </div>
</div>
<!-- 显示页数 -->
<div class="tInfor_pages row">
    <div class="text-center">
        <ul class="pagination">
            <c:if test="${pageInfo.hasPreviousPage}">
                <li><a href="/select?pageNum=${pageInfo.prePage}">&laquo;</a></li>
            </c:if>
            <c:forEach items="${pageInfo.navigatepageNums}" var="i">
                <li class="${pageInfo.pageNum==i?'active':''}"><a href="/select?pageNum=${i}">${i}</a></li>
            </c:forEach>
            <c:if test="${pageInfo.hasNextPage}">
                <li><a href="/select?pageNum=${pageInfo.nextPage}">&raquo;</a></li>
            </c:if>
        </ul>
    </div>
</div>
</body>
</html>